//
//  RYYBuyToolView.swift
//  SheYangBigData
//
//  Created by 宋海胜 on 2021/1/12.
//  Copyright © 2021 叁拾叁. All rights reserved.
//

import UIKit

class RYYBuyToolView: SYBaseView {
    
    fileprivate lazy var bianjiBtn: VGBaseTitleImgView = {
        let v: VGBaseTitleImgView = VGBaseTitleImgView(frame: CGRect.zero, type:.imgTop)
        v.textLb.text = "首页"
        v.imageV.image = UIImage(named: "shouye")
        v.tapClosure = {[weak self] (index, isSelect) in
            if let weakSelf = self {
//                weakSelf.clickedClosure?(0)
                
                weakSelf.currentVC.toShouye()
            }
        }
        return v
    }()
    
    fileprivate lazy var shanchuBtn: VGBaseTitleImgView = {
        let v: VGBaseTitleImgView = VGBaseTitleImgView(frame: CGRect.zero, type:.imgTop)
        v.textLb.text = "客服"
        v.imageV.image = UIImage(named: "kefu")
        v.tapClosure = {[weak self] (index, isSelect) in
            if let weakSelf = self {
//                weakSelf.clickedClosure?(0)
            }
        }
        return v
    }()
   

    let renyang: UIButton = {
        let v: UIButton  = UIButton()
        v.setImage(UIImage(named: "lijirenyang"), for: .normal)
        return v
    }()
    
    override func initViews() {
        
        self.backgroundColor = .white
        addSubview(bianjiBtn)
        addSubview(shanchuBtn)
        addSubview(renyang)
        bianjiBtn.snp.makeConstraints { (make) in
            make.centerY.equalToSuperview()
            make.left.equalToSuperview().offset(20.autoWidth())
            make.height.equalTo(40.autoWidth())
            make.width.equalTo(30.autoWidth())
        }
        shanchuBtn.snp.makeConstraints { (make) in
            make.centerY.equalToSuperview()
            make.left.equalTo(bianjiBtn.snp.right).offset(30.autoWidth())
            make.height.equalTo(40.autoWidth())
            make.width.equalTo(30.autoWidth())
        }
        renyang.snp.makeConstraints { (make) in
            make.centerY.equalToSuperview()
            make.right.equalToSuperview().offset(-16.autoWidth())
            make.height.equalTo(36.autoWidth())
            make.width.equalTo(224.autoWidth())
        }
    }

}
